//
//  WHYHTTPManager.h
//  News163
//
//  Created by 王洪运 on 16/1/1.
//  Copyright © 2016年 王洪运. All rights reserved.
//

#import "AFHTTPRequestOperationManager.h"

typedef void(^WHYHTTPFinishedHandler)(id result, NSError *error);

@interface WHYHTTPManager : AFHTTPRequestOperationManager

/// 加载数据
///
/// @param urlString 频道的newsId
/// @param finished  数据回传block
-(void)loadNewsRequestWithNewsId:(NSString *)newsId finishedHandler:(WHYHTTPFinishedHandler)finished;

/// 加载新闻详情数据
///
/// @param dcoid    新闻的docid
/// @param finished 数据回传block
-(void)loadNewsDetailRequestWithDocid:(NSString *)docid finishedHandler:(WHYHTTPFinishedHandler)finished;

@end
